 function indexOf(data, key) {
 	return data.indexOf(key);
 }

 function includes(data, key) {
 	return data.indexOf(key) > -1 ? true : false;
 }

 function split(str, chr) {
 	var arr = str.split(chr);
 	if (arr.length == 0) return [];

 	return arr;
 } 

function number(str) {
	return Number(str);
}

function floor(str) {
	return Math.floor(str);
}

// 比较操作日期所在月是否当前显示的月
function compareYearMonth(oneDoDay, year, month) {
	var arr = oneDoDay.split('-');
	return arr[0] == year && arr[1] == month;
}

 module.exports = {
 	split: split,
 	indexOf: indexOf,
	includes: includes,
	number: number,
	floor: floor,
	compareYearMonth: compareYearMonth,
 };
 module.exports.msg = "hello tools";